package com.banciyuan.bcywebview.base.helper.push.Item;

import android.content.Context;
import android.content.Intent;

/**
 * Created by squall on 2015/9/18.
 */
public class PushItemForth extends BasePush {
    @Override
    public void goPushActivity(Context mContext) {
        super.goPushActivity(mContext);

        if (msgs.length == 4) {
            switch (nums[2]) {
                case 3:
                    goDetailDaily();
                    break;
                default:
                    goMain();
                    break;
            }
        } else if (msgs.length == 5) {
            switch (nums[2]) {
                case 0:
                    goDetailCoser();
                    break;
                case 1:
                    goDetailIll();
                    break;
                case 2:
                    goDetailGroup();
                    break;
                case 4:
                    goDetailWrite();
                    break;
                default:
                    goMain();
                    break;

            }
        } else {
            goMain();
        }
    }

    private void goDetailCoser() {
        Intent intent = new Intent();
        initDetailType(intent, 0, 1);
        goComment(intent);
    }

    private void goDetailIll() {
        Intent intent = new Intent();
        initDetailType(intent, 1, 1);
        goComment(intent);
    }

    private void goDetailGroup() {
        Intent intent = new Intent();
        initDetailType(intent, 2, 1);
        goGroupComment(intent);
    }

    private void goDetailDaily() {
        Intent intent = new Intent();
        initDetailType(intent, 3, 1);
        goComment(intent);
    }

    private void goDetailWrite() {
        Intent intent = new Intent();
        initDetailType(intent, 4, 1);
        goWorkComment(intent);
    }


}
